//
//  LzwMyUserProblemVc.m
//  NewHalfsugar
//
//  Created by 刘志武 on 16/1/13.
//  Copyright © 2016年 刘志武. All rights reserved.
//

#import "LzwMyUserProblemVc.h"
#import "LzwBaseLable.h"
#import "LzwBaseImageView.h"
#import "LzwBaseScrollView.h"

@interface LzwMyUserProblemVc ()

@property (nonatomic, retain) LzwBaseScrollView *myScrollView;
@property (nonatomic, retain) LzwBaseImageView *myImage;
@property (nonatomic, retain) LzwBaseLable *myLable;
@property (nonatomic, retain) LzwBaseLable *myLable1;
@property (nonatomic, retain) LzwBaseLable *myLable2;
@property (nonatomic, retain) LzwBaseLable *myLable3;
@property (nonatomic, retain) LzwBaseLable *myLable4;
@property (nonatomic, retain) LzwBaseLable *myLable5;
@property (nonatomic, retain) LzwBaseLable *myLable6;
@property (nonatomic, retain) LzwBaseLable *myLable7;


@end

@implementation LzwMyUserProblemVc

-(void)dealloc{
    [_myScrollView release];
    [_myImage release];
    [_myLable release];
    [_myLable1 release];
    [_myLable2 release];
    [_myLable3 release];
    [_myLable4 release];
    [_myLable5 release];
    [_myLable6 release];
    [_myLable7 release];
    [super dealloc];
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.navigationItem.title = @"常见问题";
    
    UIImage *image = [UIImage imageNamed:@"return.png"];
    image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithImage:image style:UIBarButtonItemStylePlain target:self action:@selector(LeftButtonAction:)];
    
    self.myScrollView = [[LzwBaseScrollView alloc]initWithFrame:[[UIScreen mainScreen]bounds]];
    
    self.myScrollView.contentSize = CGSizeMake(375 * WIDTH, 1.5*667 * WIDTH);
    
    [self.view addSubview:self.myScrollView];
    
    self.myImage = [[LzwBaseImageView alloc]initWithFrame:CGRectMake((375 - 200) / 2 * WIDTH, 20 * WIDTH, 200 * WIDTH, 150 * WIDTH)];
    self.myImage.image = [UIImage imageNamed:@"44.png"];
    self.myImage.layer.masksToBounds = YES;
    self.myImage.layer.cornerRadius = 75 * WIDTH;
    [self.myScrollView addSubview:self.myImage];
    
    self.myLable = [[LzwBaseLable alloc]initWithFrame:CGRectMake(20 * WIDTH, 200 * WIDTH, 350 * WIDTH, 30 * WIDTH)];
    self.myLable.text = @"Q:为什么会被禁言?";
    self.myLable.font = [UIFont systemFontOfSize:22 * WIDTH];
    [self.myScrollView addSubview:self.myLable];
    
    self.myLable1 = [[LzwBaseLable alloc]initWithFrame:CGRectMake(25 * WIDTH, 240 * WIDTH, 340 * WIDTH, 100 * WIDTH)];
    self.myLable1.text = @"评论, 回复或者发布广告以及违规等内容会被系统禁言,账号最终解释权归半糖所有.如果有任何疑问,欢迎关注小唐君微信公众号(搜索半塘或者ibantang)咨询";
    self.myLable1.font = [UIFont systemFontOfSize:17 * WIDTH];
    self.myLable1.numberOfLines = 0;
    self.myLable1.textColor = [UIColor lightGrayColor];
    [self.myScrollView addSubview:self.myLable1];
    
    
    self.myLable2 = [[LzwBaseLable alloc]initWithFrame:CGRectMake(20 * WIDTH, 350 * WIDTH, 350 * WIDTH, 30 * WIDTH)];
    self.myLable2.text = @"Q:半糖是如何挑选优质商品的?";
    self.myLable2.font = [UIFont systemFontOfSize:22 * WIDTH];
    [self.myScrollView addSubview:self.myLable2];
    
    self.myLable3 = [[LzwBaseLable alloc]initWithFrame:CGRectMake(25 * WIDTH, 390 * WIDTH, 340 * WIDTH, 150 * WIDTH)];
    self.myLable3.text = @"我们专注于为用户推荐优质的商品.提供商品链接仅供参考,我们秉承着筛选优质商品,从编辑的个人经验,商品评价,销量,价格,店铺信誉,是否正品等多方面考量的原则出发为大家推荐好东西,提供的商品链接不受除上以外任何因素之外的影响";
    self.myLable3.font = [UIFont systemFontOfSize:17 * WIDTH];
    self.myLable3.numberOfLines = 0;
    self.myLable3.textColor = [UIColor lightGrayColor];
    [self.myScrollView addSubview:self.myLable3];
    
    
    
    self.myLable4 = [[LzwBaseLable alloc]initWithFrame:CGRectMake(20 * WIDTH, 550 * WIDTH, 350 * WIDTH, 30 * WIDTH)];
    self.myLable4.text = @"Q:如何成为半糖生活家?";
    self.myLable4.font = [UIFont systemFontOfSize:22 * WIDTH];
    [self.myScrollView addSubview:self.myLable4];
    
    self.myLable5 = [[LzwBaseLable alloc]initWithFrame:CGRectMake(25 * WIDTH, 590 * WIDTH, 340 * WIDTH, 60 * WIDTH)];
    self.myLable5.text = @"欢迎加入用户群 172741352 或者发送邮件至tg@ibantang.com自荐";
    self.myLable5.font = [UIFont systemFontOfSize:17 * WIDTH];
    self.myLable5.numberOfLines = 0;
    self.myLable5.textColor = [UIColor lightGrayColor];
    [self.myScrollView addSubview:self.myLable5];
    
    self.myLable6 = [[LzwBaseLable alloc]initWithFrame:CGRectMake(20 * WIDTH, 660 * WIDTH, 350 * WIDTH, 30 * WIDTH)];
    self.myLable6.text = @"Q:我是商家, 如何能和半塘合作?";
    self.myLable6.font = [UIFont systemFontOfSize:22 * WIDTH];
    [self.myScrollView addSubview:self.myLable6];
    
    self.myLable7 = [[LzwBaseLable alloc]initWithFrame:CGRectMake(25 * WIDTH, 700 * WIDTH, 340 * WIDTH, 80 * WIDTH)];
    self.myLable7.text = @"目前半糖专注于提供优质的内容,感谢你们的关注和支持,如有相关方面的问题请联系zg@ibantang.com";
    self.myLable7.font = [UIFont systemFontOfSize:17 * WIDTH];
    self.myLable7.numberOfLines = 0;
    self.myLable7.textColor = [UIColor lightGrayColor];
    [self.myScrollView addSubview:self.myLable7];
    
    [_myScrollView release];
    [_myImage release];
    [_myLable release];
    [_myLable1 release];
    [_myLable2 release];
    [_myLable3 release];
    [_myLable4 release];
    [_myLable5 release];
    [_myLable6 release];
    [_myLable7 release];
}
- (void)LeftButtonAction:(UIBarButtonItem *)bar{
    

    
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
